#!/usr/bin/env bash

copy_msg="Select item to copy"
del_msg="Select item to delete"

case $1 in
    # '') ;;
    'copy')
        cliphist list | rofi -dmenu -p "$copy_msg" -lines 10 -width 35 | cliphist decode | wl-copy 
        ;;
    'del')
        cliphist list | rofi -dmenu -p "$del_msg" -lines 10 -width 35 | cliphist delete
        ;;
esac